<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <% if (htmlWebpackPlugin.options.nodeModules) { %>
    <!-- Add `node_modules/` to global paths, so `require` works properly in development -->
    <script>
        require('module').globalPaths.push("<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g,'\\\\') %>")
    </script>
    <% } %>
</head>

<body>
    <div id="app"></div>
    <% if (!require('process').browser) { %>
    <script>
        if (require('process').env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
    </script>
    <% } %>
</body>

</html>